package com.example.demo.service;

import com.example.demo.mapper.CompanyMapper;
import com.example.demo.model.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyService {
    @Autowired
    private CompanyMapper companyMapper;

    public Company authenticate(String email, String password) {
        return companyMapper.getCompanyByEmailAndPassword(email, password);
    }
}